package com.example.constant;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * @author jeff
 * @since 2023/4/30 17:46
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum UserStatus{


    DISABLE(0,"禁用"),
    ENABLE(1,"启用");

    @Getter
    private int value;
    @Getter
    private String desc;

    UserStatus(int value, String desc){
        this.value=value;
        this.desc=desc;
    }

    @Override
    public String toString() {
        return "UserStatus{" +
                "value=" + value +
                ", desc='" + desc + '\'' +
                '}';
    }
}
